#!/bin/sh

DOMAIN=`hostname -d`

if [ "x$DOMAIN" != "xme.umn.edu" ]; then
    echo "$0 must be run on an me.umn.edu computer"
    exit
fi

SOURCE=/stage/cvsfgfs/SimGear-0.3/*

for DEST in \
    root@baron.flightgear.org:/var/lib/cvs/SimGear-0.3 \
    curt@crunch.me.umn.edu:/h/curt/CVS/SimGear-0.3 \
    ; do

    echo mirroring from $SOURCE to $DEST

    rsync --verbose --archive --delete \
        --perms --owner --group \
        --rsh ssh \
        $SOURCE $DEST 2>&1
done
